#ifndef MODIFYDIALOG_H
#define MODIFYDIALOG_H

#include <QDialog>
class GoodSqlHelp;
class RecvTableModel;

namespace Ui {
class ModifyDialog;
}

class ModifyDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ModifyDialog(QStringList &goodList, RecvTableModel * model, int row,  QWidget *parent = nullptr);
    ~ModifyDialog();
    void initForm();
protected:
   bool eventFilter(QObject * object, QEvent * event) override;
private slots:
    void on_buttonBox_accepted();
    void on_buttonBox_rejected();

    void on_addUnit_pushButton_clicked();

    void on_deleteUnit_pushButton_clicked();

    void on_addCategorie_pushButton_clicked();

    void on_deleteCategorie_pushButton_clicked();

private:
    Ui::ModifyDialog *ui;
    QStringList m_goodList;
    QString m_barCode;
    GoodSqlHelp *m_goodSqlHelp;
    RecvTableModel * m_goodModel;
    int m_currentRow;
};

#endif // MODIFYDIALOG_H
